from pathlib import Path

contents="I love you. \n"
contents+="I love your face. \n"
contents+='I love your eyes. \n'
path=Path("pro1.txt")
path.write_text(contents)